<?php
session_start();
include ("../db/dbcontroller.php");
include ("helper_functions.php");
include ("header.php");
if(isset($_SESSION["nickname"])){
	unset($_SESSION["nickname"]);
	
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=../index.php"></HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>	
	
<?php 	
} else {
	echo "Вам нужно сначало зайти в игру!";
}

include ("footer.php");